package com.carlinfo.stu_ques.users.pojo;

import java.awt.GradientPaint;
import java.io.Serializable;
import java.util.Date;

import com.carlinfo.stu_ques.common.util.DateUtile;

/**
 * 学生信息POJO
 * 
 * @author AcerMr id是学生的唯一标识 name学生的姓名 sex性别 birth生日 graduateSchool大学 level水平
 *         createTime创建时间 updateTime修改时间 private int id; totalCount;//总次数
 *         countFalse;错误的 accuracy;正确的 todayCount;一天的次数 todayTrueCount;一天正确的次数
 *         todayFalseCount;一天错误的次数 todayAccuracy;一天的正确率
 */
public class Students implements Serializable
{
	private int id;
	private String name;
	private boolean sex;
	private Date birth;
	private String graduateSchool;
	private double level;
	private Date createTime;
	private Date updateTime;
	private int totalCount;
	private int countTrue;
	private int countFalse;
	private double accuracy;
	private int todayCount;
	private int todayTrueCount;
	private int todayFalseCount;
	private double todayAccuracy;
	private String levelName;

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public boolean isSex()
	{
		return sex;
	}

	public void setSex(boolean sex)
	{
		this.sex = sex;
	}

	public Date getBirth()
	{
		return birth;
	}

	public void setBirth(Date birth)
	{
		this.birth = birth;
	}

	public String getGraduateSchool()
	{
		return graduateSchool;
	}

	public void setGraduateSchool(String graduateSchool)
	{
		this.graduateSchool = graduateSchool;
	}

	public double getLevel()
	{
		return level;
	}

	public void setLevel(double level)
	{
		this.level = level;
	}

	public Date getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getUpdateTime()
	{
		return updateTime;
	}

	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}

	public int getTotalCount()
	{
		return totalCount;
	}

	public void setTotalCount(int totalCount)
	{
		this.totalCount = totalCount;
	}

	public int getCountFalse()
	{
		return countFalse;
	}

	public void setCountFalse(int countFalse)
	{
		this.countFalse = countFalse;
	}

	public double getAccuracy()
	{
		return accuracy;
	}

	public void setAccuracy(double accuracy)
	{
		this.accuracy = accuracy;
	}

	public int getTodayCount()
	{
		return todayCount;
	}

	public void setTodayCount(int todayCount)
	{
		this.todayCount = todayCount;
	}

	public int getTodayTrueCount()
	{
		return todayTrueCount;
	}

	public void setTodayTrueCount(int todayTrueCount)
	{
		this.todayTrueCount = todayTrueCount;
	}

	public int getTodayFalseCount()
	{
		return todayFalseCount;
	}

	public void setTodayFalseCount(int todayFalseCount)
	{
		this.todayFalseCount = todayFalseCount;
	}

	public double getTodayAccuracy()
	{
		return todayAccuracy;
	}

	public void setTodayAccuracy(double todayAccuracy)
	{
		this.todayAccuracy = todayAccuracy;
	}

	DateUtile dateutile = new DateUtile();

	@Override
	public String toString()
	{

		return id + "\t" + name + "\t" + (sex ? "男" : "女") + "\t" + dateutile.dateToStr(birth) + "\t" + graduateSchool
				+ "\t" + levelName+"\t"+level + "\t" + dateutile.dateTimeToStr(createTime) + "\t"
				+ dateutile.dateTimeToStr(updateTime) + "\t" + totalCount + "\t" + countFalse + "\t" + accuracy + "\t"
				+ todayCount + "\t" + todayTrueCount + "\t" + todayFalseCount + "\t" + todayAccuracy;
	}

	public int getCountTrue()
	{
		return countTrue;
	}

	public void setCountTrue(int countTrue)
	{
		this.countTrue = countTrue;
	}

	public String getLevelName()
	{
		return levelName;
	}

	public void setLevelName(String levelName)
	{
		this.levelName = levelName;
	}

}
